;akae2440 Min_OS
;Author : XingWenpeng
;Date		:	2009-9-12
;
;irq_init.s  --   init SP for irq_mode

	AREA irq_sp_init, READONLY,CODE
	CODE32

; **********************************************************************
; * set sp_irq 0x33000000 for irq_mode.
; **********************************************************************
	EXPORT  irq_init
irq_init
	mrs r1,cpsr
	
	mov r0, #0xd2               
	msr cpsr_c, r0
	mov r13, #0x33000000
		
	msr cpsr_c, r1
	
	mov pc,lr
	
	end	